#include "Rect.h"

namespace MiniWindow
{
	Rect::Rect()
	{
		this->left = 0;
		this->top = 0;
		this->right = 0;
		this->bottom = 0;
	}
	Rect::Rect(int left, int top, int right, int bottom)
	{
		this->left = left;
		this->top = top;
		this->right = right;
		this->bottom = bottom;
	}

	int Rect::Width() const
	{
		return this->right - this->left;
	}
	int Rect::Height() const
	{
		return this->bottom - this->top;
	}

	Rect::operator tagRECT *()
	{
		return this;
	}
	Rect::operator const tagRECT *() const
	{
		return this;
	}
}